'use strict';

module.exports = app => {
  const { router, controller } = app;
  // 我的空间
  router.get('/profile', app.middleware.loginChecks.loginCheck, controller.profile.index);
  router.get('/profile/:userName', app.middleware.loginChecks.loginCheck, controller.profile.profileUser);

  // 广场
  router.get('/square', app.middleware.loginChecks.loginCheck, controller.square.index);
};
